//
//  NSString+Method.h
//  SegmentDemo
//
//  Created by 塔兮 on 2022/4/11.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (Method)

/// RGB颜色
- (UIColor *)RGBAColorWithHEXString;

/// 指定宽度获取字符串高度
- (CGFloat)textHeightWithFont:(UIFont *)font maxWidth:(CGFloat)width;

/// 指定高度获取字符串宽度
- (CGFloat)textWidthWithFont:(UIFont *)font maxHeight:(CGFloat)height;

@end

NS_ASSUME_NONNULL_END
